const path = require('path')

module.exports = {
  lintOnSave: true,
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        // 配置哪些文件需要自动导入
        // __dirname 当前项目根目录
        path.join(__dirname, '/src/styles/variables.less')
      ]
    }
  },
  chainWebpack: config => {
    config.devServer.disableHostCheck(true)
  }
}
